package com.gzhryc.shared_device.oem.code.user.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.shared_device.oem.code.user.dao.enums.UserTransferMoneyQrcodeEnum;

import java.util.Date;

@Table(name="user_transfer_money_qrcode")
public class UserTransferMoneyQrcode {

    @Id(auto = false)
    protected Long userId;

    @Column(note="描述")
    protected String note;

    @Column(notNull = true,defVal = "1",note = "提现二维码类型")
    protected Integer type;

    @Column(name = "qrcode",length = 255,note = "提现二维码")
    protected String qrcode;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getTypeName(){
        return UserTransferMoneyQrcodeEnum.Type.note(this.type);
    }
}
